/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.hxcx.top.modules.dvc.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hxcx.top.common.persistence.Page;
import cn.hxcx.top.common.service.CrudService;
import cn.hxcx.top.modules.dvc.dao.DeviceInfoDao;
import cn.hxcx.top.modules.dvc.entity.DeviceInfo;

/**
 * 设备信息相关Service
 * @author DoubleX
 * @version 2019-07-10
 */
@Service
@Transactional(readOnly = true)
public class DeviceInfoService extends CrudService<DeviceInfoDao, DeviceInfo> {

	@Autowired
	private DeviceInfoDao deviceInfoDao;
	
	public DeviceInfo get(String id) {
		return super.get(id);
	}
	
	public List<DeviceInfo> findList(DeviceInfo deviceInfo) {
		return super.findList(deviceInfo);
	}
	
	public List<DeviceInfo> findAjaxList(Map<String,String> params) {
		return deviceInfoDao.findAjaxList(params);
	}
	
	public Page<DeviceInfo> findPage(Page<DeviceInfo> page, DeviceInfo deviceInfo) {
		return super.findPage(page, deviceInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(DeviceInfo deviceInfo) {
		super.save(deviceInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(DeviceInfo deviceInfo) {
		super.delete(deviceInfo);
	}
	
}